<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport"
			content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
	</head>
	<body>
		<!-- 标题-start -->
		<header class="mui-bar mui-bar-nav" style="display: flex;align-items: center;">
			<a style="color: #000000;" class=" mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">支付</h1>
		</header>
		<!-- 标题-end -->
		<div class="mui-content">
			<div
				style="height: 200px;display: flex;justify-content: center;align-items: center;flex-direction: column;">
				<h3>￥60.00</h3>
				<h6>请尽快支付，放弃支付订单将被取消</h6>
			</div>
			<div class="mui-input-row mui-checkbox"
				style="display: flex;align-items: center;background-color: white;border-bottom:1px solid #AAAAAA;">
				<label style="display: flex;align-items: center;"><img src="images/zf/dianziqb.png" width="32"><span
						style="margin-top: 8px;margin-left: 10px;">电子钱包</span></label>
				<input name="Checkbox" class="che" type="checkbox" onclick="zhifu1()" style="margin-top: 10px;" checked>
			</div>
			<div class="mui-input-row mui-checkbox"
				style="display: flex;align-items: center;background-color: white;border-bottom:1px solid #AAAAAA;">
				<label style="display: flex;align-items: center;"><img src="images/zf/zfb.png" width="32"><span
						style="margin-top: 8px;margin-left: 10px;">支付宝</span></label>
				<input name="Checkbox" class="che" type="checkbox" onclick="zhifu2()" style="margin-top: 10px;" checked>
			</div>
			<div class="mui-input-row mui-checkbox"
				style="display: flex;align-items: center;background-color: white;border-bottom:1px solid #AAAAAA;">
				<label style="display: flex;align-items: center;"><img src="images/zf/wx.png" width="32"><span
						style="margin-top: 8px;margin-left: 10px;">微信</span></label>
				<input name="Checkbox" class="che" onclick="zhifu3()" type="checkbox" style="margin-top: 10px;" checked>
			</div>
		</div>
		<div style="display: flex;justify-content: center;">
			<button type="button"
				style="background-color: red;width: 80vw;height: 40px;border: none;line-height: 15px;margin-top: 20px;"
				class="mui-btn mui-btn-red mui-btn-block" id="zfid">立即支付</button>
		</div>
		<script src="js/mui.js"></script>
		<script type="text/javascript">
			mui.init()
			let che = document.getElementsByClassName("che")
			che[0].checked = true
			che[1].checked = false
			che[2].checked = false
			function zhifu1() {
				che[0].checked = true
				che[1].checked = false
				che[2].checked = false
			}

			function zhifu2() {
				che[0].checked = false
				che[1].checked = true
				che[2].checked = false
			}

			function zhifu3() {
				che[0].checked = false
				che[1].checked = false
				che[2].checked = true
			}
			let zfid = document.getElementById("zfid").addEventListener("tap",function(){
				localStorage.setItem("test",true)
				window.location.href="index.html"
			} )
		</script>
	</body>

</html>
